<%@tag import="com.alter.utils.ApplicationContextUtil"%>
<%@tag pageEncoding="UTF-8" language="java"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ attribute name="index" required="false" type="java.lang.Integer"%>
<div class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span
				class="icon-bar"></span>
			</a> <a href="#" class="brand">Sweet Family</a>
			<div class="nav-collapse">
				<c:set var="active" value="false"></c:set>
				<ul class="nav">
					<li ${index == null || index == 1?'class="active"':''} title="金光闪闪的别墅大门"><a href="<%=request.getContextPath()%>/index">首页</a></li>
					<li class="${index == 6?'active dropdown':'dropdown'}" title="个人管理" id="personalmenu">
						<a class="dropdown-toggle" data-toggle="dropdown" href="#personalmenu">
							个人中心
							<b class="caret"></b>
						</a>
						<ul class="dropdown-menu">
							<li>
								<a href="<%=request.getContextPath()%>/personal/${user.name}/index">
									<i class="icon-home"></i>
									个人主页
								</a>
							</li>
							<li>
								<a href="<%=request.getContextPath()%>/personal/${user.name}/blog">
									<i class="icon-user"></i>
									个人文章
								</a>
							</li>
						</ul>
					</li>
					<li ${index == 2?'class="active"':''} title="嘘, 这里有一点短消息要你查看."><a href="<%=request.getContextPath()%>#">消息中心</a></li>
					<li ${index == 3?'class="active"':''} title="快看看家里又有啥事情要你去做了."><a href="<%=request.getContextPath()%>#">任务中心</a></li>
					<li ${index == 4?'class="active"':''} title="只有掌握家庭实际领导地位的才能进的来得."><a href="<%=request.getContextPath()%>/manage/config">系统管理</a></li>
					<li ${index == 5?'class="active"':''} title="家庭重要新闻"><a href="<%=request.getContextPath()%>/manage/article">文章资讯</a></li>
				</ul>
				<form class="navbar-search pull-right">
					<input type="text" class="search-query" placeholder="看看最近家里有啥大事...">
				</form>
			</div>
		</div>
	</div>
</div>